﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using CMS.BLL;

public partial class Controls_Common_ctrMainMenu : System.Web.UI.UserControl
{
    private int nCurrentLanguage = Support.GetCurrentLanguage();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            this.SetLabelData();
        
        }

    }

    private void SetLabelData()
    {
   
        lnkHome.Text = MultipleLanguage.HOME[nCurrentLanguage - 1];
        lnkCambodia.Text = MultipleLanguage.CAMBODIA[nCurrentLanguage - 1];
        lnkContactUs.Text = MultipleLanguage.CONTACT_US [nCurrentLanguage - 1];
        lnkCustomizeTour.Text = MultipleLanguage.CUSTOMIZE_TOUR[nCurrentLanguage - 1];
        lnkLaos.Text = MultipleLanguage.LAOS[nCurrentLanguage - 1];
        lnkVietnam.Text = MultipleLanguage.VIETNAM[nCurrentLanguage - 1];
        lnkHome.NavigateUrl = "~/Default.aspx";
        //lnkCambodia.NavigateUrl = "~/Default.aspx?cid=3";
        lnkContactUs.NavigateUrl = "~/ContactUs.aspx";
        lnkCustomizeTour.NavigateUrl = "~/CustomizeTour.aspx";
        
        lnkAboutVietnam.Text = MultipleLanguage.ABOUTVIETNAM[nCurrentLanguage -1]; 
        lnkVietnamHotel.Text = MultipleLanguage.VIETNAMHOTEL[nCurrentLanguage -1]; 
        lnkVietnamTours.Text = MultipleLanguage.VIETNAMTOUR[nCurrentLanguage -1]; 
      
        lnkAboutLaos.Text = MultipleLanguage.ABOUTLAO[nCurrentLanguage -1]; 
        lnkLaosHotel.Text = MultipleLanguage.LAOHOTEL[nCurrentLanguage -1]; 
        lnkLaosTour.Text = MultipleLanguage.LAOTOUR[nCurrentLanguage -1]; 
        lnkCruiseLao.Text = MultipleLanguage.LAOCRUISE[nCurrentLanguage -1]; 

         lnkAboutCambodia.Text= MultipleLanguage.ABOUTCAMBODIA[nCurrentLanguage -1]; 
        lnkCambodiaHotel.Text =MultipleLanguage.CAMBODIAHOTEL[nCurrentLanguage -1]; 
        lnkCambodiaTour.Text = MultipleLanguage.CAMBODIATOUR[nCurrentLanguage -1];
        lnkCruiseCambodia.Text = MultipleLanguage.CAMBODIACRUISE[nCurrentLanguage - 1]; 
    }

    
}
